package com.yoome.easyrpc.common.utils;

import java.util.Random;

public class RandomUtil {
    public static int nextInt(int upLimit) {
        if (upLimit <= 0) {
            return 0;
        }
        Random random = new Random(System.currentTimeMillis());
        // randomly produce one inter in [0, upLimit)
        return random.nextInt(upLimit);
    }
}
